import Node  from "../Node";
export default class Rect extends Node {
    render(context) {
      super.render(context);
      context.lineWidth = this.property.lineWidth || 1;
      context.strokeStyle = this.property.color || "#f0ff00";
      context.strokeRect(
        this.transform.x*this.dm.worldScale.scale,
        this.transform.y*this.dm.worldScale.scale,
        this.transform.w * this.scale.x *this.dm.worldScale.scale,
        this.transform.h * this.scale.y *this.dm.worldScale.scale
      );
    }
  }
  